﻿@using AmorCanino.Web.Models.Models;
@model AdoptPet
@{
    ViewBag.Title = "Adoptar";
}
@section JavaScript {
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery-tmpl-min.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/Adoptar.js")"></script>
}
<div class="adoptContainer">
    <h2>Adoptar</h2>

    <div class="petsContainer">
        @foreach (var pet in Model.Pets)
        {
            Html.RenderPartial("_adoptTemplate", pet);
        }
    </div>

    <div class="pageCounter">
        @for (int i = 0; i < Model.TotalPages; i++)
        {
            <a href="#" data-page="@(i + 1)" class="pageLink">@(i + 1)</a>
        }
    </div>
</div>

<!-- Template -->
<div style="display:none;">
    @Html.Partial("_adoptEmptyTemplate")
</div>
<!-- *** -->
@Html.Hidden("RequestPagedPetURL", Url.Action("GetAdoptedByPage", "Services"))
@Html.Hidden("ContentRootURL", Url.Content("~/Content/"))